package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmUserDTO;
import com.heima.model.wemedia.pojos.WmUser;

public interface WmUserService extends IService<WmUser> {

    /*
     * 根据用户名查询自媒体用户
     * */
    ResponseResult<WmUser> findByName(String name);

/*
* 保存自媒体用户信息
* */
    ResponseResult<WmUser> saveWmUser(WmUser wmUser);

    /*
    * 自媒体登录
    * */
    public ResponseResult<WmUser> login(WmUserDTO wmUserDTO);

}
